package com.demo.design;

import com.demo.design.impl.CacheServiceImpl;
import org.junit.Test;

/**
 * @author: ling007
 * @date: 2024/8/27 17:33
 * @description:
 */

public class ApiTest {

    @Test
    public void test_CacheService() {

        CacheService cacheService = new CacheServiceImpl();

        cacheService.set("user_name_01", "凌先生", 2);
        String val01 = cacheService.get("user_name_01", 2);
        System.out.println("测试结果：" + val01);

    }
}
